import '../utils/jquery-concrete'
import { Message } from 'element-ui'
import Router from '../router/index'
/* eslint-disable */
var root = 'api/service'
concrete.configure({
  'root': root,
  'globalTokenKey': 'jinan',
  'onError': function(code, msg) {
    // if(code===101002){
    //   alert("用户登录状态失效,请重新登录");
    //   Router.push({path:'/login'})
    // }
    if(code==101007){
      msg='删除失败'
    }
    Message({
      showClose:true,
      message: msg,
      type: 'error',
      duration: 2000
    })
  }
})
